home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr20
/
tr3.zip
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-03-20
|
3KB
|
125 lines
echo off
cls
if "%1" == "" goto ERROR
if "%2" == "" goto ERROR
for %%f in (a: A: b: B: c: C: d: D: e: E: f: F: g: G: h: H:) do if (%%f) == (%1) goto SECOND
goto ERROR
:SECOND
for %%f in (a: A: b: B:) do if (%%f) == (%2) goto FLOPPY
for %%f in (c: C: d: D: e: E: f: F: g: G: h: H:) do if (%%f) == (%2) goto HARD
goto ERROR
:FLOPPY
echo. ▀▀██▄▄ TOTAL RECALL Installation Program ▄▄██▀▀
echo.
echo.
echo.To install to a two floppy system (one of which must be 3.5" or HD 5.25" and
echo.will hold the newly installed diskette), be sure to have a blank, FORMATTED
echo.diskette ready. Label it as follows: 'TOTAL RECALL'
echo.
echo.To ABORT installation: Press CTRL+C, then answer [y] at prompt.
echo.
echo. -OR-
echo.
pause
cls
echo. ▀▀██▄▄ TOTAL RECALL Installation Program ▄▄██▀▀
echo.
echo.
echo.Please insert blank formatted disk labeled 'TOTAL RECALL' in drive %2
echo.
echo.To ABORT installation: Press CTRL+C, then answer [y] at prompt.
echo.
echo. -OR-
echo.
pause
cls
echo. ▀▀██▄▄ TOTAL RECALL Installation Program ▄▄██▀▀
echo.
echo.
echo.Now installing to drive %2...
echo.
echo.To ABORT installation: Press CTRL+C, then answer [y] at prompt.
echo.
%2
cd \
if exist %1program.exe goto OKFLOPPY
goto NOSOURCE
:OKFLOPPY
%1\program
%1\files
cls
echo. ▀▀██▄▄ TOTAL RECALL Installation Program ▄▄██▀▀
echo.
echo.
echo.Installation was successful... To run TOTAL RECALL from drive %1,
echo.place newly installed disk in drive %2 and type:
echo.
echo. %1
echo. TR3
goto ENDINSTALL
:HARD
if exist %1program.exe goto OKHARD
goto NOSOURCE
:OKHARD
cls
echo. ▀▀██▄▄ TOTAL RECALL Installation Program ▄▄██▀▀
echo.
echo.
echo.Now installing PROGRAM and FILES to hard drive %2, directory \RECALL\ ...
echo.
echo.To ABORT installation: Press CTRL+C, then answer [y] at prompt.
echo.
md %2\RECALL
%2
cd \
cd recall
%1program
%1files
cls
echo. ▀▀██▄▄ TOTAL RECALL Installation Program ▄▄██▀▀
echo.
echo.
echo.Installation was successful... To run TOTAL RECALL now type:
echo.
echo. TR3
goto ENDINSTALL
:NOSOURCE
cls
echo. ▀▀██▄▄ TOTAL RECALL Installation Program ▄▄██▀▀
echo.
echo.
echo.You typed...
echo. INSTALL %1 %2
echo.
echo.There is no distribution disk in %1 which is your sourcedrive.
echo.Please insert distribution disk in %1 and try again...
goto ENDINSTALL
:ERROR
cls
echo. ▀▀██▄▄ TOTAL RECALL Installation Program ▄▄██▀▀
echo.
echo.
echo.The correct syntax is:
echo.
echo. INSTALL [sourcedrive:] [targetdrive:]
echo.
echo.
echo.For example, to install TOTAL RECALL from drive A: to drive C:, type:
echo.
echo. INSTALL A: C:
echo.
echo.Please try again...
echo.
goto ENDINSTALL
:ENDINSTALL
echo.